package com.sense.kukoo.biz_explore.model

import com.sense.kukoo.biz_explore.net.ExploreHttpApi
import com.sense.kukoo.common.mvvm.model.BaseMvvmModel
import com.sense.kukoo.common.repo.bean.IndexBean
import com.sense.kukoo.common.repo.bean.ResultBean
import com.sense.kukoo.common.repo.http.KukooHttpManager

class ExploreModel:BaseMvvmModel() {
    override fun onModelCleared() {}

    suspend fun index(): ResultBean<IndexBean> {
        return KukooHttpManager.instance.createHttpClient(ExploreHttpApi::class.java).index()
    }
}